﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QL_Yahoo.aspx.cs" Inherits="Admin_News_QL_Yahoo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
     <style type="text/css">
        .style2
        {
            width: 106px;
        }
         .style6
         {
             width: 286px;
         }
         .style7
         {
             height: 23px;
             width: 286px;
         }
         .style8
         {
             width: 106px;
             height: 28px;
         }
         .style9
         {
             width: 286px;
             height: 28px;
         }
    </style>
     </head>
<body>
    <form id="form1" runat="server"><center>
      <table style="width:100%;" border="1">
        <tr>
            <td class="style2" align="right">
                <asp:Label ID="Label1" runat="server" Text="Tên Yahoo"></asp:Label>
            </td>
            <td class="style6">
                <asp:TextBox ID="txtYahooName" runat="server" Width="245px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtYahooName" ValidationGroup="log"
                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style8" align="right">
                <asp:Label ID="Label2" runat="server" Text="Tên Tài Khoản"></asp:Label>
            </td>
            <td class="style9">
                <asp:TextBox ID="txtYahooAddress" runat="server" Width="245px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtYahooAddress" ValidationGroup="log"
                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <br />
                <br />
            </td>
            <td class="style7">
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="log"
                    Width="169px" onclick="btnSave_Click"  />
                <asp:Button ID="btnCancel" runat="server" Text="Hủy" Width="169px" onclick="btnCancel_Click" 
                    />
            </td>

        </tr>
    </table>
          <div style="padding-top:20px;border-width:2px;border-color:Silver">
              <asp:DataList ID="DataListYahoo" runat="server" CellPadding="4" 
                  ForeColor="#333333" BorderStyle="Solid" BorderWidth="1px" GridLines="Both">
                  <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                      <ItemTemplate>
                       <div style="float:left;">
                        <div style="float:left;width:100px;"><%# DataBinder.Eval(Container.DataItem, "YahooID")%></div>
                        <div style="float:left;width:500px;"><%# DataBinder.Eval(Container.DataItem, "YahooName")%></div>
                        <div style="float:left;width:100px;"><a href='QL_Yahoo.aspx?edit=<%# DataBinder.Eval(Container.DataItem, "YahooID")%>' >Sửa</a></div>
                        <div style="float:left;width:100px;"><a href='QL_Yahoo.aspx?delete=<%# DataBinder.Eval(Container.DataItem, "YahooID")%>'>Xóa</a></div>
                       </div>
                      </ItemTemplate>
                  <AlternatingItemStyle BackColor="White" />
                  <ItemStyle BackColor="#E3EAEB" />
                  <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                  <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
              </asp:DataList>
          </div>
          </center>
    </form>
</body>
</html>
